Skip to content

feat(@react-router/dev): log future flag warnings for upcoming v8 flags#15029

Merged
brophdawg11 merged 3 commits into
devfrom
agents/react-router-v7-flag-deprecation-logging
May 14, 2026
Merged

feat(@react-router/dev): log future flag warnings for upcoming v8 flags#15029
brophdawg11 merged 3 commits into
devfrom
agents/react-router-v7-flag-deprecation-logging

Conversation

@brophdawg11
Copy link
Copy Markdown
Contributor

@brophdawg11 brophdawg11 commented May 8, 2026

Adds future flag deprecation warnings for v7 in preparation for v8. Warnings are suppressed when a flag is explicitly set to either true or false — only undefined (i.e., not yet configured) triggers a warning.

During config resolution, warn about stable v8_ future flags the user
hasn't yet opted into, pointing them to the upgrade guide. This mirrors
the pattern used in Remix v2 to nudge users toward adopting future flags
before they become mandatory.

Warns for: v8_middleware, v8_splitRouteModules, v8_viteEnvironmentApi,
and v8_passThroughRequests.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

✅ Change File Found

A change file file exists in this PR. Thanks!

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 8, 2026

Preview Build Available

Preview builds have been created for this PR. You can install react-router using:

pnpm install "remix-run/react-router#preview/pr-15029&path:packages/react-router"

And/or install other packages via:

pnpm install "remix-run/react-router#preview/pr-15029&path:packages/react-router-dev"
pnpm install "remix-run/react-router#preview/pr-15029&path:packages/react-router-express"
pnpm install "remix-run/react-router#preview/pr-15029&path:packages/react-router-node"
pnpm install "remix-run/react-router#preview/pr-15029&path:packages/react-router-serve"

These preview builds will be updated automatically as you push new commits.

@brophdawg11 brophdawg11 marked this pull request as ready for review May 14, 2026 14:58
@brophdawg11 brophdawg11 merged commit c35008f into dev May 14, 2026
10 of 11 checks passed
@brophdawg11 brophdawg11 deleted the agents/react-router-v7-flag-deprecation-logging branch May 14, 2026 14:58
@github-actions
Copy link
Copy Markdown
Contributor

The preview branch preview/pr-15029 has been deleted now that this PR is merged/closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant